package com.hxd.otc.module.my.contract;

import com.hxd.otc.module.my.bean.ExchangeRecordBean;
import com.hxd.otc.module.my.bean.ExchangeRuleBean;
import com.hxd.otc.mvp.base.IBasePresenter;
import com.hxd.otc.mvp.base.IBaseView;

import java.util.ArrayList;

/**
 * Created by lzy on 2018/12/26 0026.
 * description ${兑换Contract}
 */
public interface ExchangeContract {
    interface IView extends IBaseView {
        void getExchangeCoinRuleSuccess();

        void getExchangeTaxSuccess(String outSymbol, String inSymbol, String taxValue);

        void exchangePayFail(String errMessage);

        void exchangePaySuccess(ExchangeRecordBean exchangeRecordBean);
    }

    interface IPresenter extends IBasePresenter {
        void exchangeCoinRule();

        String getPair(String outSymbol, String inSymbol);

        ExchangeRuleBean getExchangeRuleBeanByPair(String pair);

        ArrayList<String> getInSymbols(String outSymbol);

        ArrayList<String> getOutSymbols();

        void requestExchangeTax(String outSymbol, String inSymbol);

        String getTaxByPair(String outSymbol, String inSymbol, boolean isReGetTax);

        void exchangePay(String outCoinId, String inCoinId, String outVolume);
    }
}
